home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tk2.3 / dist / RCS / Makefile,v < prev   
Encoding:
Text File  |  1992-12-03  |  3.2 KB  |  115 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    jhh:1.1; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.1
  10. date     92.12.02.21.59.31;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#
  26. # This is a simplified Makefile for use in Tk distributions.  Before using
  27. # it to compile Tk, you may wish to reset some of the following variables:
  28. #
  29. # TCL_DIR -        Name of directory holding tcl.h and tcl.a.
  30. # XLIB -        Name of archive containing Xlib binaries.
  31. #
  32.  
  33. # You may also wish to add some of the following switches to the CFLAGS
  34. # variable:
  35. #
  36. # -DX11R3        Causes code that depends on R4 facilities not to
  37. #            be compiled.  I haven't tested Tk with R3 in quite
  38. #            a while, so this switch may not be enough to
  39. #            generate a working R3 version of Tk.  Furthermore,
  40. #            use of this switch will disable some of the facilities
  41. #            of Tk related to window managers.
  42. # -DNO_PROTOTYPE    Turns off ANSI-style procedure prototypes and the
  43. #            corresponding compile-time checks.  Without this
  44. #            defininition, prototypes will be turned on if the
  45. #            compiler supports ANSI C by defining __STDC__.
  46. # -DTK_LIBRARY=\"dir\"    Arranges for dir, which must be the name of a
  47. #            directory, to be the library directory for Tk scripts.
  48. #            This value gets put into the variable $tk_library
  49. #            when a new application is created.  The library
  50. #            defaults to /usr/local/lib/tk, so you don't need the
  51. #            switch unless your library is in a non-standard place.
  52. #
  53.  
  54. TCL_DIR        = tcl
  55. XLIB        = -lX11
  56. CC        = cc
  57. CFLAGS        = -I. -I$(TCL_DIR) -g -DTK_VERSION=\"2.3\"
  58.  
  59. LIBS = libtk.a $(TCL_DIR)/libtcl.a
  60.  
  61. WIDGOBJS = tkButton.o tkEntry.o tkFrame.o tkListbox.o \
  62.     tkMenu.o tkMenubutton.o tkMessage.o tkScale.o \
  63.     tkScrollbar.o
  64.  
  65. CANVOBJS = tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvLine.o \
  66.     tkCanvPoly.o tkCanvText.o tkCanvWind.o tkRectOval.o \
  67.     tkTrig.o
  68.  
  69. TEXTOBJS = tkText.o tkTextBTree.o tkTextDisp.o tkTextIndex.o tkTextTag.o
  70.  
  71. OBJS = tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o \
  72.         tkCmds.o tkColor.o tkConfig.o tkCursor.o tkError.o \
  73.         tkEvent.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o \
  74.         tkOption.o tkPack.o tkPlace.o tkPreserve.o tkSelect.o \
  75.         tkSend.o tkShare.o tkWindow.o tkWm.o $(WIDGOBJS) \
  76.     $(CANVOBJS) $(TEXTOBJS)
  77.  
  78. WIDGSRCS = tkButton.c tkEntry.c tkFrame.c tkListbox.c \
  79.     tkMenu.c tkMenubutton.c tkMessage.c tkScale.c \
  80.     tkScrollbar.c tkText.c tkTextBTree.c tkTextDisp.c \
  81.     tkTextIndex.c
  82.  
  83. CANVSRCS = tkCanvas.c tkCanvArc.c tkCanvBmap.c tkCanvLine.c \
  84.     tkCanvPoly.c tkCanvText.c tkCanvWind.c tkRectOval.c \
  85.     tkTrig.c
  86.  
  87. TEXTSRCS = tkText.c tkTextBTree.c tkTextDisp.c tkTextIndex.c tkTextTag.c
  88.  
  89. SRCS = tk3d.c tkArgv.c tkAtom.c tkBind.c tkBitmap.c \
  90.         tkCmds.c tkColor.c tkConfig.c tkCursor.c tkError.c \
  91.         tkEvent.c tkFont.c tkGet.c tkGC.c tkGeometry.c tkGrab.c \
  92.         tkOption.c tkPack.c tkPlace.c tkPreserve.c tkSelect.c \
  93.         tkSend.c tkShare.c tkWindow.c tkWm.c $(WIDGSRCS) \
  94.     $(CANVSRCS) $(TEXTSRCS)
  95.  
  96. wish: main.o $(LIBS)
  97.     $(CC) $(CFLAGS) main.o $(LIBS) $(XLIB) -lm -o wish
  98.  
  99. libtk.a: $(OBJS)
  100.     rm -f libtk.a
  101.     ar cr libtk.a $(OBJS)
  102.     ranlib libtk.a
  103.  
  104. $(TCL_DIR)/libtcl.a:
  105.     cd $(TCL_DIR); make libtcl.a
  106.  
  107. clean:
  108.     rm -f $(OBJS) main.o libtk.a wish    
  109.  
  110. $(OBJS): tk.h tkInt.h tkConfig.h
  111. $(WIDGOBJS): default.h
  112. $(CANVOBJS): default.h tkCanvas.h
  113. main.o: tk.h tkInt.h
  114. @
  115.